<?php $this->load->view('common/cms-head'); ?>
<article id="content">
    <div class="pgwrapper">
    <!--Body top CRV PART Ends HERE-->
<div class="w960 bg1 p15 bx_shw">
	<table width="100%" border="0" cellpadding="0" cellspacing="0">
		<tr>
			<td width="20%" style="border-right: 2px solid #e5e5e5;" valign="top">
			<?php $this->load->view('enterprises/leftnavCMS'); ?>
			</td>
			<td width="80%" valign="top" style="padding: 5px;">
			<select name="storeView" id="storeView" onchange="getStoresBy(this.value)" style="width: 200px;padding-top:5px;" class="setBgInput">
                    <option <?php if($rej=='yes'){ echo 'selected';}?> value="rejected">Rejected</option>
                    <option <?php if($rej=='no'){ echo 'selected';}?> value="alpha">Stores By Alpha</option>
            </select>
			<table
					width="100%" border="1" cellpadding="5" cellspacing="0"
					style="border: 1px solid #e5e5e5; border-collapse: collapse;">
                    <?php if($rej=='no'){?>
                    <tr><div id="alpha" class="p10_15">
             <a href="/viewStores/0-9">#</a>
            	<?php for($a=65;$a<=90;$a++){ ?>
			 <a href="/viewStores/<?php echo chr($a); ?>"><?php echo chr($a);?></a>
			 <?php } ?>
            </div>
            </tr><?php }?>
					<tr style="background-color: #f2f2f2;">
						<td class="txt-blck"><strong>Store Title</strong></td>
						<td class="txt-blck"><strong>Store Status</strong></td>
						<td class="txt-blck">&nbsp;</td>
					</tr>
					<?php foreach ($storeArray as $stores){ ?>
					<tr>
						<td class="txt-blck"><?php echo $stores['store_name'];?></td>
						<td class="txt-blck"><?php echo $stores['store_status'];?></td>
						<td><a href="/editStore/<?php echo $stores['store_id']; ?>">Edit</a></td>
					</tr>
					<?php } ?>
				</table>
			</td>
		</tr>
	</table>
</div>
</div>
</article>
<div class="clr-both spacer-10">&nbsp;</div>
<?php $this->load->view('common/cms-footer'); ?>
<script>
function getStoresBy(a){
	window.location="/getStoresBy/"+a;
}
</script>